/********************************************************
 Name          : network.h
 Author        : Khachatur Gyozalyan
 Copyright     : Copyright by Antel Systems
 Description   :
 **********************************************************/
// Include Files
#include "FreeRTOS.h"
#include "task.h"
#include "usart_fast.h"
#include "CLI.h"
#include "lwip/udp.h"
#include "lwip/ip_addr.h"

#ifndef _NETWORK_H_
#define _NETWORK_H_

#define PROT_ANTEL	1
#define PORT_SNMP   2
#define PROT_PCC	12
#define PORT_SATEL  15

#define NETWORK_BUFFER_SIZE_QAM (540*3 - 6)
#define NETWORK_BUFFER_SIZE_2FSK (90-6)
#define NETWORK_BUFFER_SIZE_4FSK (96-6)
#define NETWORK_BUFFER_SIZE_GMSK (90-6)

#define NETWORK_STANDART_PORT 0

unsigned int Network_Buffer_Size ;

void network_task_init(void);
void network_receive(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *addr, u16_t port);
void print_network_stat(void);

#endif
